package org.wrigut.scanlib;

/* Token.java
 * 
 * Project 1 - CS 3361
 * 
 * Authors: Chris Gutierrez
 *          Jordan Wright
 */

public class Token {
	
	private TokenType type;
	private int row, col;
	private String value;
	
	public Token(TokenType t, int r, int c, String v) {
		this.type = t;
		this.row = r;
		this.col = c;
		this.value = v;
	}
	
	public void changeType(TokenType type) {
		this.type = type;
	}
	
	public TokenType getType() {
		return type;
	}
	
	public String getValue() {
		return value;
	}
	
	public int getRow() {
		return row;
	}
	
	public int getColumn() {
		return col;
	}
	
	public String toString()
	{
		String toString = row+","+col+" "+type+": "+value;
		return toString;
	}
}
